package com.hctg.forced2sleep.activity;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.BarUtils;
import com.hctg.forced2sleep.databinding.ActivitySplashBinding;

/**
 * Description: 类的描述
 * Date       : 2018/11/15 on 23:33
 */
public class SplashActivity extends BaseActivity<ActivitySplashBinding> {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BarUtils.setStatusBarVisibility(this, false);
//        BarUtils.transparentStatusBar(this);
        //同意并进入
        viewBinding.btnAgree.setOnClickListener(v -> {
            finish();
            startActivity(new Intent(mActivity, MainActivity.class));
        });
        //不同意并退出软件
        viewBinding.btnExits.setOnClickListener(v -> {
            finish();
        });
    }
}
